@layout("/common/_container.html",{js:["/assets/modular/present/present.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">用户晒物管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="userName" class="layui-input" type="text" placeholder="发布人"/>
                            </div>

                            <div class="layui-inline">
                                <input id="goodsName" class="layui-input" type="text" placeholder="商品名称"/>
                            </div>
                            <div class="layui-inline">
                                <input id="goodsNo" class="layui-input" type="text" placeholder="商品编号"/>
                            </div>

                            <div class="layui-inline">
                                <select name="审核状态"  id="status">
                                    <option value="">全部</option>
                                    <option value="1">待审核</option>
                                    <option value="2">通过</option>
                                    <option value="3">拒绝</option>
                                    <option value="4">下线</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select name="标识"  id="mark">
                                    <option value="">全部</option>
                                    <option value=1>置顶</option>
                                </select>

                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">上传时间</label>
                                <div class="layui-input-inline" style="width: 100px;">
                                    <input type="text"  id="pubBeginTime"  autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-form-mid">-</div>
                                <div class="layui-input-inline" style="width: 100px;">
                                    <input type="text"  id="pubEndTime"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                           <!--     <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>-->
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="presentTable" lay-filter="presentTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn  layui-btn-xs" lay-event="edit">审核</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
<script  type="text/html" id="statusTpl">

    {{# if(d.status==1){ }}
        <p style="height: 40px;text-align: center; " class="layui-bg-green" >等待 </p>
    {{#  }else if(d.status==2){ }}
        <p style="height: 40px;text-align: center; " class="layui-bg-orange"> 发布</p>
    {{#  }else if(d.status==3){  }}
        <p  style="height: 40px;text-align: center; " class="layui-bg-red">拒绝</p>
    {{#  }else if(d.status==4){  }}
        <p style="height: 40px;text-align: center; " class="layui-bg-blue" >下线</p>
    {{# } }}


</script>
@}